From: Ray Strode Date: Thu, 22 Aug 2013 13:40:12 +0000 (-0400) Subject: objectManager: fix indentation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3651 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5ea75499fe3a646d86c536405ed78dab4bcbd3e1;p=gnome-shell.git objectManager: fix indentation --- diff --git a/js/misc/objectManager.js b/js/misc/objectManager.js index f7265fe70..6998dd2e0 100644 --- a/js/misc/objectManager.js +++ b/js/misc/objectManager.js @@ -71,24 +71,24 @@ const ObjectManager = new Lang.Class({ }, _addInterface: function(objectPath, interfaceName, onFinished) { - let info = this._interfaceInfos[interfaceName]; + let info = this._interfaceInfos[interfaceName]; - if (!info) { - if (onFinished) - onFinished(); - return; - } - - let proxy = new Gio.DBusProxy({ g_connection: this._connection, - g_name: this._serviceName, - g_object_path: objectPath, - g_interface_name: interfaceName, - g_interface_info: info, - g_flags: Gio.DBusProxyFlags.NONE }); - - proxy.init_async(GLib.PRIORITY_DEFAULT, - this._cancellable, - Lang.bind(this, function(initable, result) { + if (!info) { + if (onFinished) + onFinished(); + return; + } + + let proxy = new Gio.DBusProxy({ g_connection: this._connection, + g_name: this._serviceName, + g_object_path: objectPath, + g_interface_name: interfaceName, + g_interface_info: info, + g_flags: Gio.DBusProxyFlags.NONE }); + + proxy.init_async(GLib.PRIORITY_DEFAULT, + this._cancellable, + Lang.bind(this, function(initable, result) { let error = null; try { initable.init_finish(result);